﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using FXnaWpfBase;

using GWApplication;

namespace GWPresentation
{

   public  class ProjectViewModel:MDTVIViewModel
    {


       public ProjectViewModel()
       {


           this._isShowCheck = false;

           this.LoadChildren();



       }


       public void Refresh()
       {
           this.Children.Clear();

           this.LoadChildren();

       }


       protected override void LoadChildren()
       {
           if (ProjectService.CurrentService.BNullProj)
           {
               return;

           }



           TvProjectViewModel pd = new TvProjectViewModel(this);
          
           this.Children.Add(pd);

       }




       /// <summary>
       /// 我们需要得到一个模型来确定哪些数据应该是选择状态，当前处于选择状态的有哪些
       /// 目前的设计来讲，我们希望当前选择项只有一个，我们尝试循环读取各个子选项，以期得到最终的结果
       /// </summary>
       public MDTVIViewModel SelectedVM
       {
           get {


               return this.GetSelectedVM();

             

           }
 

       }



    }
}
